home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / xulrunner-1.9.0.14 / chrome / cview.jar / content / cview / cview.xul < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-29  |  6.8 KB  |  191 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!-- ***** BEGIN LICENSE BLOCK *****
  4.  Version: MPL 1.1/GPL 2.0/LGPL 2.1
  5.  
  6.  The contents of this file are subject to the Mozilla Public License Version
  7.  1.1 (the "License"); you may not use this file except in compliance with
  8.  the License. You may obtain a copy of the License at
  9.  http://www.mozilla.org/MPL/
  10.  
  11.  Software distributed under the License is distributed on an "AS IS" basis,
  12.  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  13.  for the specific language governing rights and limitations under the
  14.  License.
  15.  
  16.  The Original Code is mozilla.org code.
  17.  
  18.  The Initial Developer of the Original Code is
  19.  Netscape Communications Corporation.
  20.  Portions created by the Initial Developer are Copyright (C) 1998
  21.  the Initial Developer. All Rights Reserved.
  22.  
  23.  Contributor(s):
  24.    Robert Ginda, rginda@netscape.com, original author
  25.  
  26.  Alternatively, the contents of this file may be used under the terms of
  27.  either the GNU General Public License Version 2 or later (the "GPL"), or
  28.  the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  29.  in which case the provisions of the GPL or the LGPL are applicable instead
  30.  of those above. If you wish to allow use of your version of this file only
  31.  under the terms of either the GPL or the LGPL, and not to allow others to
  32.  use your version of this file under the terms of the MPL, indicate your
  33.  decision by deleting the provisions above and replace them with the notice
  34.  and other provisions required by the GPL or the LGPL. If you do not delete
  35.  the provisions above, a recipient may use your version of this file under
  36.  the terms of any one of the MPL, the GPL or the LGPL.
  37.  
  38.  ***** END LICENSE BLOCK ***** -->
  39.  
  40. <!DOCTYPE window>
  41.  
  42. <?xml-stylesheet href="chrome://cview/skin" type="text/css"?>
  43.  
  44. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  45. <?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
  46. <?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
  47. <!--
  48.   including tasksOverlay.xul imports the tasks menu, it will appear
  49.   under the 'tasksMenu' <menu> below.
  50. -->
  51.  
  52. <window id="main-window"
  53.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  54.         orient="vertical" onload="onLoad();" onunload="onUnload();"
  55.         persist="width height" title="XPCOM Component Viewer">
  56. <!--
  57.   The persist attribute contains attributes that should be saved to
  58.   localstore.rdf when the window closes.  The next time this window is
  59.   opened, persisted properties will be automatically restored.
  60. -->
  61.  
  62. <!--
  63.   debug needs to be set before loading the utility library in order for
  64.   it to take effect.
  65.  
  66.   files loaded are:
  67.     tree-utils.js  General purpose tree classes
  68.  
  69.     cview-utils.js     generic utility functions.
  70.     cview-rdf.js       RDF utility class (RDFHelper).
  71.     cview-static.js    Non event-handler functions core to cview.
  72.     cview-handlers.js  Event-handlers core to cview.
  73.     cview-trees.js CView specific trees
  74. -->
  75.   <script>
  76.     var DEBUG = true;
  77.   </script>
  78.   <script src="chrome://cview/content/tree-utils.js"/>
  79.   <script src="chrome://cview/content/cview-utils.js"/>
  80.   <script src="chrome://cview/content/cview-rdf.js"/>
  81.   <script src="chrome://cview/content/cview-static.js"/>
  82.   <script src="chrome://cview/content/cview-handlers.js"/>
  83.   <script src="chrome://cview/content/cview-trees.js"/>
  84.  
  85. <!--
  86.   This popup is the context menu for elements in the interfaces list.
  87. -->
  88.   <popupset>
  89.     <popup id="interfacePopup">
  90.     <menuitem label="LXR filename lookup"
  91.         oncommand="onLXRIFCLookup(event,'find?string=');"/>
  92.     <menuitem label="LXR text lookup"
  93.         oncommand="onLXRIFCLookup(event, 'search?string=');"/>
  94.     </popup>
  95.   </popupset>
  96.  
  97.   <toolbox>
  98.     <menubar id="main-menubar">
  99.       <menu id="view-menu" label="View">
  100.         <menupopup>
  101.           <menu label="Components">
  102.             <menupopup>
  103.               <menuitem id="menu-cmp-show-all" label="All" checked="true"
  104.                 type="checkbox"
  105.                 oncommand="onChangeDisplayMode(event);"/>
  106.               <menuitem id="menu-cmp-show-contains"
  107.                 label="Containing..." type="checkbox"
  108.                 oncommand="onChangeDisplayMode(event);"/>
  109.               <menuitem id="menu-cmp-show-starts-with"
  110.                 label="Starting with..." type="checkbox"
  111.                 oncommand="onChangeDisplayMode(event);"/>
  112.             </menupopup>
  113.           </menu>
  114.           <menu label="Interfaces">
  115.             <menupopup>
  116.               <menuitem id="menu-ifc-show-all" label="All" checked="true"
  117.                 type="checkbox"
  118.                 oncommand="onChangeDisplayMode(event);"/>
  119.               <menuitem id="menu-ifc-show-contains"
  120.                 label="Containing..." type="checkbox"
  121.                 oncommand="onChangeDisplayMode(event);"/>
  122.               <menuitem id="menu-ifc-show-starts-with"
  123.                 label="Starting with..." type="checkbox"
  124.                 oncommand="onChangeDisplayMode(event);"/>
  125.               <menuitem id="menu-ifc-show-implemented-by"
  126.                 label="Implemented by selected component" 
  127.                 type="checkbox"
  128.                 oncommand="onChangeDisplayMode(event);"/>
  129.             </menupopup>
  130.           </menu>
  131.         </menupopup>  
  132.       </menu>
  133.       <menu id="tasksMenu"/>
  134.     </menubar>
  135.   </toolbox>
  136.  
  137.   <vbox id="outer-box" flex="1">
  138.   <hbox id="inner-box" flex="9">
  139.     <vbox id="component-box" flex="1" width="50%">
  140.       <text id="component-label" value="Components..." crop="right"/>
  141.  
  142.       <tree flex="1" id="component-tree" persist="height"
  143.         primary="true" onselect="onComponentSelect(event);"
  144.         onclick="onComponentClick(event);">
  145.  
  146.         <treecols>
  147.           <treecol id="cmp-name" label="Name" primary="true" flex="1"
  148.             persist="hidden width"/>
  149.           <splitter class="tree-splitter"/>
  150.           <treecol id="cmp-number" flex="1" label="Number"
  151.             persist="hidden width"/>
  152.         </treecols>
  153.         <treechildren id="project-body"/>
  154.       </tree>
  155.  
  156.     </vbox>
  157.  
  158.     <splitter id="main-splitter" collapse="after">
  159.       <grippy/>
  160.     </splitter>
  161.  
  162.     <vbox id="interface-box" flex="1" width="50%">
  163.     <text id="interface-label" value="Interfaces..." crop="right"/>
  164.  
  165.       <tree flex="1" id="interface-tree" persist="height"
  166.         onclick="onInterfaceClick(event);" context="interfacePopup"
  167.         onselect="onInterfaceSelect(event);">
  168.  
  169.         <treecols>
  170.           <treecol id="ifc-name" label="Name" primary="true" flex="1"
  171.             persist="hidden width"/>
  172.           <splitter class="tree-splitter"/>
  173.           <treecol id="ifc-number" flex="1" label="Number"
  174.             persist="hidden width"/>
  175.         </treecols>
  176.         <treechildren id="project-body"/>
  177.       </tree>
  178.  
  179.     </vbox>
  180.  
  181.   </hbox> <!-- inner-box -->
  182.  
  183.   <splitter id="textbox-splitter" collapse="after">
  184.     <grippy/>
  185.   </splitter>
  186.  
  187.   <textbox multiline="true" readonly="true" id="output-text" flex="1"/>
  188.  
  189.   </vbox> <!-- outer-box -->
  190. </window>
  191.